package service.impl;

import dao.BatteryDao;
import dao.impl.BatteryDaoImpl;
import entity.Battery;
import service.BatteryService;

import java.util.List;

public class BatteryServiceImpl implements BatteryService {

    BatteryDao batteryDao = new BatteryDaoImpl();
    @Override
    public List<Battery> info() {
        return batteryDao.info();
    }

    @Override
    public Battery selectAll(int id) {
        return batteryDao.selectAll(id);
    }

    @Override
    public int update(Battery battery) {
        return batteryDao.update(battery);
    }

    @Override
    public int delete(int id) {
        return batteryDao.delete(id);
    }
}
